import request from '@/utils/request'

// 查询客服尺码数据字典列表
export function listAll(query) {
  return request({
    url: '/product/customsize/listAll',
    method: 'get',
    params: query
  })
}
// 查询客服尺码数据字典列表
export function listCustomsize(query) {
  return request({
    url: '/product/customsize/list',
    method: 'get',
    params: query
  })
}

// 查询客服尺码数据字典详细
export function getCustomsize(id) {
  return request({
    url: '/product/customsize/' + id,
    method: 'get'
  })
}

// 新增客服尺码数据字典
export function addCustomsize(data) {
  return request({
    url: '/product/customsize',
    method: 'post',
    data: data
  })
}

// 修改客服尺码数据字典
export function updateCustomsize(data) {
  return request({
    url: '/product/customsize',
    method: 'put',
    data: data
  })
}

// 删除客服尺码数据字典
export function delCustomsize(id) {
  return request({
    url: '/product/customsize/' + id,
    method: 'delete'
  })
}
